@model Contoso_University.Models.Student

@{
    ViewData["Title"] = "删除学生";
}

<h1>删除学生</h1>

<p class="text-danger">@ViewData["ErrorMessage"]</p>

<h3>确定要删除这名学生吗？</h3>
<div>
    <h4>学生信息</h4>
    <hr />
    <dl class="row">
        <dt class="col-sm-2">
            姓
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.LastName)
        </dd>
        <dt class="col-sm-2">
            名
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.FirstName)
        </dd>
        <dt class="col-sm-2">
            入学日期
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.EnrollmentDate)
        </dd>
    </dl>
    
    <form asp-action="Delete">
        <input type="hidden" asp-for="ID" />
        <input type="submit" value="删除" class="btn btn-danger" />
        <a asp-action="Index" class="btn btn-secondary">返回列表</a>
    </form>
</div> 